<?php

return array(
	'searchColumns' => array(
		'sn',
		'status'=>array('dropDownList',$model->stateHandle->options()),
		'selectTime' => array('dropDownList', Yii::app()->enum->options('selectTime'))
	),

	'dataColumns' => array(
		'sn',
//		array(
//			'name' => 'object_type',
//			'value' => 'Yii::app()->enum->lookup("dic", $data->getAttribute("object_type"))'	
//		),
		array(
			'name' => 'items.goods.title',
		),
		'totalPrice',
		'create_time',
		array(
			'name' => 'status',
			'value' => '$data->stateHandle->lookup()',
		),
		array(
			'name' => 'pay.status',
			'value' => 'CHtml::value($data, "payStatus")'
		),
		array(
			'class' => 'ButtonColumn',
			'header' => '操作',
			'stateHandles' => array(
				'stateHandle' => array(
					'url' => 'Yii::app()->controller->createUrl($data->getAttribute("object_type")."/{$op}", array("id"=>$data->id))',
				),
			),
		),
	),
	'operates' => false,
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>